package com.crawler.system;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 爬虫系统主应用程序
 */
@SpringBootApplication
@EnableTransactionManagement
@EnableScheduling
@MapperScan("com.crawler.system.repository")
@ComponentScan(basePackages = {
    "com.crawler.system.service",
    "com.crawler.system.controller",
    "com.crawler.system.config",
    "com.crawler.system.repository",
    "com.crawler.system.util",
    "com.crawler.system"
})
public class CrawlerSystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(CrawlerSystemApplication.class, args);
    }
} 
